export interface role {
	id: number;
	name: string;
	companyId: number;
	addAccountId: number;
	addAccountName: string;
	addTime: string;
	accountCounts: number;
	menuIds?: string;
}

export interface roleData {
	counts: number;
	pageSize: number;
	list: Array<role>;
}

//////
export interface RoleParams {
    page?: number,
    pageSize?: number
}

//////
// 获取角色权限列表
export interface RolesList {
	id: number;
	name: string;
	icon: string;
	url: string;
	pathName: string;
	pid: number;
	sort: number;
	type: number;
	isButton: number;
	children?: RolesList[];
}

export interface RolesListData {
	list: RolesList[];
}

// 角色添加
// 类型
// 添加参数接口类型
export interface RoleForm {
    id?: number
    name: string;
    menuIds: number[];
}

// 添加返回的数据
export interface RoleByID {
	id: number;
	name: string;
	companyId: number;
	addAccountId: number;
	addAccountName?: string;
	addTime: string;
	accountCounts: number;
	menuIds: number[];
}